projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ba653
)
x86: ich-spi: Set the rx operation mode for ich 7
author
Bin Meng
<
[email protected]
>
Fri, 12 Dec 2014 14:06:15 +0000
(19:36 +0530)
committer
Simon Glass
<
[email protected]
>
Sat, 13 Dec 2014 22:08:04 +0000
(15:08 -0700)
ICH 7 SPI controller only supports array read command (03h).
Fast array read command (0Bh) is not supported.
Signed-off-by: Bin Meng <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
Tested-by: Simon Glass <
[email protected]
>
Reviewed-by: Jagannadha Sutradharudu Teki <
[email protected]
>
drivers/spi/ich.c
patch
|
blob
|
history
diff --git
a/drivers/spi/ich.c
b/drivers/spi/ich.c
index c4d3a291e8dbf75cbbb52ba0ab3c8efe704678ac..b356411c36a4c3f87bda9549fa28dc7cf35a5872 100644
(file)
--- a/
drivers/spi/ich.c
+++ b/
drivers/spi/ich.c
@@
-141,6
+141,10
@@
struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
ich->slave.max_write_size = ctlr.databytes;
ich->speed = max_hz;
+ /* ICH 7 SPI controller only supports array read command */
+ if (ctlr.ich_version == 7)
+ ich->slave.op_mode_rx = SPI_OPM_RX_AS;
+
return &ich->slave;
}